@charset "utf-8";

/*标题1*/
h1 {
	color: #FFFFFF;
	padding-top: 100px;
}

/*主内容区*/
#content {
	width: 960px;	
	margin: 50px auto;	
}

#content ul {
	width: 980px;	
}

#content ul li {
	float: left;
	margin-right: 20px;
}

#content ul li a {
	display: block;
	width: 225px;
	height: 180px;
	position: relative;
	/*远近度设置*/
	perspective: 300px;
}

/*鼠标悬停a容器，旋转正反面*/
#content ul li a:hover .forward {
	transform: rotateY(-180deg);
}

#content ul li a:hover .back {
	transform: rotateY(0deg);
}

/*正面内容*/
#content ul li .forward {
	backface-visibility: hidden;
	transition:all 0.8s;
}

#content ul li .forward img {
	display: block;
}

#content ul li .forward .tips {
	width: 100%;
	height: 24px;
	line-height: 24px;
	background: rgba(0,0,0,0.7);
	text-align: center;
	color: #FFFFFF;
	font-size: 12px;
	position: absolute;
	bottom:0;
}

/*反面内容*/
#content ul li .back {
	position: absolute;
	top:0;
	left: 0;	
	width: 225px;
	height: 180px;
	background: url(../images/bg.jpg);
	transition: all 0.8s;
	/*默认翻转180度*/
	transform: rotateY(180deg);
	/*背面不可见*/
	backface-visibility: hidden;
}

#content ul li .back h3 {
	color: #FFFFFF;
	line-height: 16px;
	text-align: center;
	border-bottom: 1px dashed #FFFFFF;
	padding: 15px 0;
	margin-bottom: 15px;
}

#content ul li .back p {
	color: #FFFFFF;
	font-size: 12px;
	line-height: 18px;
	padding: 0 10px;
	text-indent: 2em;
}